export type Name = 'arduino' | 'arduinodrivers' | 'leap' | 'cpp'

export type Arch = 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 's390' | 's390x' | 'x32' | 'x64'

export type URLMESSAGE = {
    [key in Name]: {
        [key in NodeJS.Platform]?: {
            [key: string]: string
        }
    }
}


export type RUNPATH = {
    [key in Name]: {
        [key in NodeJS.Platform | 'run']?: string;
    }
}


export interface Options {
    type?: 'view' | 'command',
    name: Name[]
}


// 当前软件信息
export interface Myapp {
    name: string,
    version?: string,
    description?: string
    url?: string
    size?: number
}

// 当前系统环境
export interface Userwin {
    type: NodeJS.Platform,
    version: string,
    arch: Arch
}

/**
 * 软件信息 | 系统环境 | 需要软件 | 打开 | 运行| 删除| 测试
 */
export type Message = 'A0' | 'A1' | 'A2' | 'open' | 'run' | 'del' | 'test'

export type Nametype = {
    name: Name,
    type: number | boolean,
    description?: string
}
